import {createRouter, createWebHashHistory} from 'vue-router'

//引入登录页
const login = () => import("../views/login.vue")
const user = () => import("../views/Index.vue")

const routes = [
    {
        path:'/',
        component:login
    },
    {
        path:'/user',
        component:user
    },
]



const router = createRouter({
    history:createWebHashHistory(),
    routes
})

export default router